home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / contents / scripts / f2c < prev    next >
Text File  |  1997-06-06  |  425b  |  18 lines

  1. crunch() {
  2.     LIBDIR=$1
  3.     LIBPREFIX=$2
  4.     for f in $LIBDIR/$LIBPREFIX.so.?.*
  5.     do
  6.         bname=`basename $f`
  7. #        echo "   - compacting $bname."
  8.         cp $f $LIBDIR/t$bname || exit 1
  9.         rm -f $f
  10.         mv $LIBDIR/t$bname $f
  11.     done
  12. }
  13. #echo "Compacting shared library to decrease disk space utilization..."
  14. crunch usr/lib libf2c;
  15. #echo "Shared library compacted."
  16. ( cd usr/lib ; rm -rf libf2c.so.0 )
  17. ( cd usr/lib ; ln -sf libf2c.so.0.11 libf2c.so.0 )
  18.